<?php

namespace app\util;

class Md5
{

    public static function md5($userid){
        $str = "1234567890asdfghjklqwertyuiopzxcvbnmASDFGHJKLZXCVBNMPOIUYTREWQ";
        $string = substr(str_shuffle($str),0,20);
        $json = md5($string);
        $token=  $userid.':'.$json;
        return $token;
    }
}